@import '../../scss/variable.scss';

.wrapper {
  display: flex;
  flex-direction: row;
  justify-content: start;
  font-size: 16px;
  padding: 12px;
  margin: 20px;

  &.right {
    flex-direction: row-reverse;
    justify-content: end;
    text-align: right;

    .time {
      right: 2px;
    }
  }
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid $lightGray;
}

.avatar-img {
  width: 100%;
  height: 100%;
  background-size: contain;
}

.bubble {
  max-width: 60%;
  padding: 12px;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px;
  background-color: $bgColor;
  margin: 0 8px;
  position: relative;
  height: fit-content;
  width: fit-content;
}

.time {
  font-size: 12px;
  color: $gray;
  position: absolute;
  bottom: -24px;
  left: 2px;
  white-space: nowrap;
}

.text {
  text-align: left;
  line-height: 24px;
  white-space: pre-wrap;
}

.link {
  color: #4080ff;
  text-decoration: underline;
}

.select {
  display: flex;
}
.opt {
  margin: 8px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid $bgColor;
  cursor: pointer;
  &:hover {
    background: $bgColor;
  }
}